package main.java.main.bean;

import java.util.List;

public class AutoBean {


    /**
     * author : Yangsheng
     * notesMain : 地图区域-明细
     * notesSub : TMS车队管理
     * numMain : 01
     * numSub : 03
     * javaFlieName : BaseMapPointZone
     * modelType : 1
     * tableName : T_MAP
     * subTableName : T_MAP_POINT
     * pk01 : organizationId
     * pk02 : areaId
     * pk03 : seq
     * pk04 :
     * pk05 :
     * pk06 :
     * searchPk01 : [{"name":"areaId","isId":true,"isDesc":false}]
     * tableList : ["areaId","areaName","seq",""]
     * systemCodeList : [{"codeId":"areaId","codeType":"AREA_TYPE"}]
     * otherCodeList : [{"codeId":"areaId","tableName":"T_BAS_AREA"}]
     */

    private String author;
    private String notesMain;
    private String notesSub;
    private String numMain;
    private String numSub;
    private String javaFlieName;
    private String modelType;
    private String tableName;
    private String subTableName;
    private String pk01;
    private String pk02;
    private String pk03;
    private String pk04;
    private String pk05;
    private String pk06;
    private List<SearchPk01Bean> searchPk01;
    private List<String> tableList;
    private List<String> gridList;

    public List<String> getGridList() {
        return gridList;
    }

    public void setGridList(List<String> gridList) {
        this.gridList = gridList;
    }

    public List<String> getGridListDesc() {
        return gridListDesc;
    }

    public void setGridListDesc(List<String> gridListDesc) {
        this.gridListDesc = gridListDesc;
    }

    private List<String> gridListDesc;
    private String tableListStr;
    private List<SystemCodeListBean> systemCodeList;
    private List<OtherCodeListBean> otherCodeList;
    private String autoPath;
    private String templateDirectory;
    private String dayTime;
    private String numTime;
    private String tableListStrDesc;
    private String gridListStr;

    public String getGridListStr() {
        return gridListStr;
    }

    public void setGridListStr(String gridListStr) {
        this.gridListStr = gridListStr;
    }

    public String getGridListStrDesc() {
        return gridListStrDesc;
    }

    public void setGridListStrDesc(String gridListStrDesc) {
        this.gridListStrDesc = gridListStrDesc;
    }

    private String gridListStrDesc;
    private List<String> tableListDesc;
    private List<DetailTableListBean> detailTableList;


    private List<ModelFormList> modelFormList;

    public List<ModelFormList> getModelFormList() {
        return modelFormList;
    }
    public void setModelFormList(List<ModelFormList> modelFormList) {
        this.modelFormList = modelFormList;
    }

    public List<AutoBean.DetailTableListBean> getDetailTableList() {
        return detailTableList;
    }

    public void setDetailTableList(List<AutoBean.DetailTableListBean> detailTableList) {
        this.detailTableList = detailTableList;
    }


    public String getTableListStrDesc() {
        return tableListStrDesc;
    }

    public void setTableListStrDesc(String tableListStrDesc) {
        this.tableListStrDesc = tableListStrDesc;
    }

    public List<String> getTableListDesc() {
        return tableListDesc;
    }

    public void setTableListDesc(List<String> tableListDesc) {
        this.tableListDesc = tableListDesc;
    }

    public String getTableListStr() {
        return tableListStr;
    }

    public void setTableListStr(String tableListStr) {
        this.tableListStr = tableListStr;
    }

    public String getDayTime() {
        return dayTime;
    }

    public void setDayTime(String dayTime) {
        this.dayTime = dayTime;
    }

    public String getNumTime() {
        return numTime;
    }

    public void setNumTime(String numTime) {
        this.numTime = numTime;
    }

    public AutoBean() {
        if(this.pk01==null||"".equals(this.pk01)){
            this.pk01 = "organizationId";
        }

    }

    public String getTemplateDirectory() {
        return templateDirectory;
    }

    public void setTemplateDirectory(String templateDirectory) {
        this.templateDirectory = templateDirectory;
    }

    public String getAutoPath() {
        return autoPath;
    }

    public void setAutoPath(String autoPath) {
        this.autoPath = autoPath;
    }

    public String toString() {
        return this.getAuthor() + "\n"
                + this.getJavaFlieName() + "\n"
                + this.getNotesMain() + "\n"
                + this.getNotesSub() + "\n"
                + this.getPk01() + "\n"
                + this.getPk02() + "\n"
                + this.getNumMain() + "\n"
                + this.getNumSub() + "\n";
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getNotesMain() {
        return notesMain;
    }

    public void setNotesMain(String notesMain) {
        this.notesMain = notesMain;
    }

    public String getNotesSub() {
        return notesSub;
    }

    public void setNotesSub(String notesSub) {
        this.notesSub = notesSub;
    }

    public String getNumMain() {
        return numMain;
    }

    public void setNumMain(String numMain) {
        this.numMain = numMain;
    }

    public String getNumSub() {
        return numSub;
    }

    public void setNumSub(String numSub) {
        this.numSub = numSub;
    }

    public String getJavaFlieName() {
        return javaFlieName;
    }

    public void setJavaFlieName(String javaFlieName) {
        this.javaFlieName = javaFlieName;
    }

    public String getModelType() {
        return modelType;
    }

    public void setModelType(String modelType) {
        this.modelType = modelType;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getSubTableName() {
        return subTableName;
    }

    public void setSubTableName(String subTableName) {
        this.subTableName = subTableName;
    }

    public String getPk01() {
        return pk01;
    }

    public void setPk01(String pk01) {
        this.pk01 = pk01;
    }

    public String getPk02() {
        return pk02;
    }

    public void setPk02(String pk02) {
        this.pk02 = pk02;
    }

    public String getPk03() {
        return pk03;
    }

    public void setPk03(String pk03) {
        this.pk03 = pk03;
    }

    public String getPk04() {
        return pk04;
    }

    public void setPk04(String pk04) {
        this.pk04 = pk04;
    }

    public String getPk05() {
        return pk05;
    }

    public void setPk05(String pk05) {
        this.pk05 = pk05;
    }

    public String getPk06() {
        return pk06;
    }

    public void setPk06(String pk06) {
        this.pk06 = pk06;
    }

    public List<SearchPk01Bean> getSearchPk01() {
        return searchPk01;
    }

    public void setSearchPk01(List<SearchPk01Bean> searchPk01) {
        this.searchPk01 = searchPk01;
    }

    public List<String> getTableList() {
        return tableList;
    }

    public void setTableList(List<String> tableList) {
        this.tableList = tableList;
    }

    public List<SystemCodeListBean> getSystemCodeList() {
        return systemCodeList;
    }

    public void setSystemCodeList(List<SystemCodeListBean> systemCodeList) {
        this.systemCodeList = systemCodeList;
    }

    public List<OtherCodeListBean> getOtherCodeList() {
        return otherCodeList;
    }

    public void setOtherCodeList(List<OtherCodeListBean> otherCodeList) {
        this.otherCodeList = otherCodeList;
    }

    public static class SearchPk01Bean {

        public SearchPk01Bean() {
            this.type = "input";
        }

        /**
         * name : areaId
         * isId : true
         * isDesc : false
         */

        private String name;
        private String type;

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        private boolean isId;
        private boolean isDesc;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public boolean isIsId() {
            return isId;
        }

        public void setIsId(boolean isId) {
            this.isId = isId;
        }

        public boolean isIsDesc() {
            return isDesc;
        }

        public void setIsDesc(boolean isDesc) {
            this.isDesc = isDesc;
        }
    }

    public static class SystemCodeListBean {
        public SystemCodeListBean() {
            this.allowNull = true;//默认可以为空
        }
        /**
         * codeId : areaId
         * codeType : AREA_TYPE
         * allowNull: 是否允许为空
         */

        private String codeId;
        private String codeType;
        private boolean allowNull;

        public boolean isAllowNull() {
            return allowNull;
        }

        public void setAllowNull(boolean allowNull) {
            this.allowNull = allowNull;
        }

        public String getCodeId() {
            return codeId;
        }

        public void setCodeId(String codeId) {
            this.codeId = codeId;
        }

        public String getCodeType() {
            return codeType;
        }

        public void setCodeType(String codeType) {
            this.codeType = codeType;
        }
    }

    public static class ModelFormList {

        private String formName;
        private String formFields;
        private String formFieldStr;
        private List<String> formFieldList;


        private List<String> formFieldStrList;


        public List<String> getFormFieldList() {
            return formFieldList;
        }

        public void setFormFieldList(List<String> formFieldList) {
            this.formFieldList = formFieldList;
        }

        public List<String> getFormFieldStrList() {
            return formFieldStrList;
        }

        public void setFormFieldStrList(List<String> formFieldStrList) {
            this.formFieldStrList = formFieldStrList;
        }

        public String getFormName() {
            return formName;
        }

        public void setFormName(String formName) {
            this.formName = formName;
        }

        public String getFormFields() {
            return formFields;
        }

        public void setFormFields(String formFields) {
            this.formFields = formFields;
        }

        public String getFormFieldStr() {
            return formFieldStr;
        }

        public void setFormFieldStr(String formFieldStr) {
            this.formFieldStr = formFieldStr;
        }
    }

    public static class OtherCodeListBean {
        public OtherCodeListBean() {
            this.allowNull = true;
            this.tableDesc = "";
        }

        /**
         * codeId : areaId
         * tableName : T_BAS_AREA
         * codeName: area
         */

        private String codeId;
        private String tableName;

        public String getTableId() {
            return tableId;
        }

        public void setTableId(String tableId) {
            this.tableId = tableId;
        }

        private String tableId;

        public String getTableDesc() {
            return tableDesc;
        }

        public void setTableDesc(String tableDesc) {
            this.tableDesc = tableDesc;
        }

        private String tableDesc;

        private String codeName;

        public String getCodeName() {
            return codeName;
        }

        public void setCodeName(String codeName) {
            this.codeName = codeName;
        }

        private boolean allowNull;

        public boolean isAllowNull() {
            return allowNull;
        }

        public void setAllowNull(boolean allowNull) {
            this.allowNull = allowNull;
        }

        public String getCodeId() {
            return codeId;
        }

        public void setCodeId(String codeId) {
            this.codeId = codeId;
        }

        public String getTableName() {
            return tableName;
        }

        public void setTableName(String tableName) {
            this.tableName = tableName;
        }
    }


    public static class DetailTableListBean {
        /**
         * javaFlieName : BaseCarrier
         * subFuctionId : 01
         * subFunctionName : Map_ID
         * tableName : T_MAP_POINT
         * pk01 : organizationId
         * pk02 : carrierId
         * pk03 : test
         * pk04 :
         * tableListStr : areaId,areaName,seq,areaParentId
         * systemCodeList : [{"codeId":"creditGrade","codeType":"CREDIT_GRADE","allowNull":true},{"codeId":"invoiceType","codeType":"INVOICE_TYPE","allowNull":true}]
         * otherCodeList : [{"codeId":"branchId","codeName":"branch","tableName":"BSM_BRANCH","allowNull":true}]
         */

        private String javaFlieName;
        private String subFuctionId;
        private String subFunctionName;
        private String tableName;
        private String subName;

        public String getSubName() {
            return subName;
        }

        public void setSubName(String subName) {
            this.subName = subName;
        }

        private String pk01;
        private String pk02;
        private String pk03;
        private String pk04;
        private String pk05;
        private String pk06;
        private String tableListStr;
        private List<SystemCodeListBeanX> systemCodeList;
        private List<OtherCodeListBeanX> otherCodeList;
        private List<String> tableList;

        public String getPk05() {
            return pk05;
        }

        public void setPk05(String pk05) {
            this.pk05 = pk05;
        }

        public String getPk06() {
            return pk06;
        }

        public void setPk06(String pk06) {
            this.pk06 = pk06;
        }

        public List<String> getTableList() {
            return tableList;
        }

        public void setTableList(List<String> tableList) {
            this.tableList = tableList;
        }

        public String getJavaFlieName() {
            return javaFlieName;
        }

        public void setJavaFlieName(String javaFlieName) {
            this.javaFlieName = javaFlieName;
        }

        public String getSubFuctionId() {
            return subFuctionId;
        }

        public void setSubFuctionId(String subFuctionId) {
            this.subFuctionId = subFuctionId;
        }

        public String getSubFunctionName() {
            return subFunctionName;
        }

        public void setSubFunctionName(String subFunctionName) {
            this.subFunctionName = subFunctionName;
        }

        public String getTableName() {
            return tableName;
        }

        public void setTableName(String tableName) {
            this.tableName = tableName;
        }

        public String getPk01() {
            return pk01;
        }

        public void setPk01(String pk01) {
            this.pk01 = pk01;
        }

        public String getPk02() {
            return pk02;
        }

        public void setPk02(String pk02) {
            this.pk02 = pk02;
        }

        public String getPk03() {
            return pk03;
        }

        public void setPk03(String pk03) {
            this.pk03 = pk03;
        }

        public String getPk04() {
            return pk04;
        }

        public void setPk04(String pk04) {
            this.pk04 = pk04;
        }

        public String getTableListStr() {
            return tableListStr;
        }

        public void setTableListStr(String tableListStr) {
            this.tableListStr = tableListStr;
        }

        public List<SystemCodeListBeanX> getSystemCodeList() {
            return systemCodeList;
        }

        public void setSystemCodeList(List<SystemCodeListBeanX> systemCodeList) {
            this.systemCodeList = systemCodeList;
        }

        public List<OtherCodeListBeanX> getOtherCodeList() {
            return otherCodeList;
        }

        public void setOtherCodeList(List<OtherCodeListBeanX> otherCodeList) {
            this.otherCodeList = otherCodeList;
        }

        public static class SystemCodeListBeanX {
            /**
             * codeId : creditGrade
             * codeType : CREDIT_GRADE
             * allowNull : true
             */

            private String codeId;
            private String codeType;
            private boolean allowNull;

            public String getCodeId() {
                return codeId;
            }

            public void setCodeId(String codeId) {
                this.codeId = codeId;
            }

            public String getCodeType() {
                return codeType;
            }

            public void setCodeType(String codeType) {
                this.codeType = codeType;
            }

            public boolean isAllowNull() {
                return allowNull;
            }

            public void setAllowNull(boolean allowNull) {
                this.allowNull = allowNull;
            }
        }

        public static class OtherCodeListBeanX {
            /**
             * codeId : branchId
             * codeName : branch
             * tableName : BSM_BRANCH
             * allowNull : true
             */

//            "codeId": "shipperCountry",
//                    "codeName": "basArea",
//                    "tableName": "T_BAS_AREA",
//                    "tableId": "areaId",
//                    "tableDesc": "areaName",
//                    "allowNull": true

            private String codeId;
            private String codeName;
            private String tableName;
            private String tableId;
            private String tableDesc;
            private boolean allowNull;

            public String getTableId() {
                return tableId;
            }

            public void setTableId(String tableId) {
                this.tableId = tableId;
            }

            public String getTableDesc() {
                return tableDesc;
            }

            public void setTableDesc(String tableDesc) {
                this.tableDesc = tableDesc;
            }

            public String getCodeId() {
                return codeId;
            }

            public void setCodeId(String codeId) {
                this.codeId = codeId;
            }

            public String getCodeName() {
                return codeName;
            }

            public void setCodeName(String codeName) {
                this.codeName = codeName;
            }

            public String getTableName() {
                return tableName;
            }

            public void setTableName(String tableName) {
                this.tableName = tableName;
            }

            public boolean isAllowNull() {
                return allowNull;
            }

            public void setAllowNull(boolean allowNull) {
                this.allowNull = allowNull;
            }
        }
    }



}
